package com.tang.shopping.back.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.tang.shopping.common.controller.BaseController;
import com.tang.shopping.common.util.ConstatFinalUtil;
import com.tang.shopping.users.pojo.AAdmins;
import com.tang.shopping.users.service.IUsersService;

@Controller

public class NoLoginController extends BaseController {

    @Resource
    private IUsersService usersService;

    /**
     * 管理员列表(测试)
     * 
     * @return
     */
    @RequestMapping("/adminsList")
    public String adminsList(HttpServletRequest requeset) {
	ConstatFinalUtil.LOGGER.info("---- adminsList ----");
	Map<String, Object> condMap = new HashMap<String, Object>();
	List<AAdmins> adminsList = this.usersService.findCondListAdminsService(null, condMap);
	requeset.setAttribute("adminsList", adminsList);
	return "/back/adminsList";
    }
}
